Skip to content

Generate configuration parameters overview - #5932

Draft
mpkorstanje wants to merge 13 commits into
mainfrom
feature/generate-configuration-parameters-overview
Draft

Generate configuration parameters overview #5932
mpkorstanje wants to merge 13 commits into
mainfrom
feature/generate-configuration-parameters-overview

Conversation

@mpkorstanje

@mpkorstanje mpkorstanje commented Jul 30, 2026

Copy link
Copy Markdown
Member

See: https://docs.spring.io/spring-boot/specification/configuration-metadata/format.html

Closes: #4330


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@mpkorstanje
mpkorstanje force-pushed the feature/generate-configuration-parameters-overview branch from c73e0df to 14ffed5 Compare July 30, 2026 21:38
@mpkorstanje
mpkorstanje force-pushed the feature/generate-configuration-parameters-overview branch from f02ff2f to 3295a99 Compare July 30, 2026 22:58

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should build this as a fat/shadowed jar to make it easy to put it on the annotation processor classpath. No need to do that now, but let's discuss it.


dependencies {
api(platform(projects.junitBom))
api(projects.junitPlatformCommons)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need that?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but the way OSGI is setup makes it a requirement for every module.

tasks {
compileJava {
options.compilerArgs.add("-Xlint:-module") // due to qualified exports
options.compilerArgs.add("-Xlint:-module,-processing") // -module: due to qualified exports, -processing: not all annotations need to be processed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What warnings does this emit without -processing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Complain about all present annotations that weren't claimed by a processor.

Similar too:

https://stackoverflow.com/questions/69439506/no-processor-claimed-any-of-these-annotations

Comment thread junit-jupiter-migrationsupport/junit-jupiter-migrationsupport.gradle.kts Outdated
@mpkorstanje
mpkorstanje force-pushed the feature/generate-configuration-parameters-overview branch 2 times, most recently from 6c063a1 to e6ab635 Compare July 31, 2026 08:52
@mpkorstanje
mpkorstanje force-pushed the feature/generate-configuration-parameters-overview branch from e6ab635 to 314e8fd Compare July 31, 2026 09:57
@testlens-app

testlens-app Bot commented Jul 31, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 314e8fd
▶️ Tests: 24700 executed
⚪️ Checks: 17/17 completed


Learn more about TestLens at testlens.app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configuration Parameters Overview

2 participants